package com.vsii.sample.data;

public class Student extends People implements Comparable<Student>{
	private double score;

	public double getScore() {
		return score;
	}

	public void setScore(double score) {
		this.score = score;
	}
	
	public Student(int id, String infoType, String name, int age, String address, int mobile) {
		super(id, infoType, name, age, address, mobile);
	}
	

	@Override
	public String toString() {
		return super.toString() + " score= " +score ;
	}
	public int compareTo(Student s) {
		return this.getId()- s.getId();
	}

}